package com.wut.clock.elasticsearch.repository;

import com.wut.clock.elasticsearch.dto.ArticleParam;
import org.springframework.data.domain.Page;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @author ZYH
 * @unit D9Lab
 * @description 文章repository
 * @date 2022/6/20 14:35
 */
public interface ArticleRepository extends ElasticsearchRepository<ArticleParam,Integer> {

    /**
     * 根据关键字查询
     */
    Page<ArticleParam> findByArticleTitleOrArticleContentOrKeywords(String articleTitle,String articleContent,String keywords);

}
